package com.shangcheng.service;

import com.shangcheng.entity.TCategory;
import com.shangcheng.mapper.TCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CatgoryServiceImpl {
    @Autowired
    TCategoryMapper dao;
    @Transactional(readOnly = true)
    public List<TCategory> selectAll() {
        return dao.selectList(null);
    }
}
